/**
 * 
 */
package com.precisosoft.mathematize.server.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.json.JSONObject;

/**
 * @author jewettdx
 *
 */
public class RegisterServlet extends HttpServlet {
	 
	 private static final long serialVersionUID = 8032611514671727168L;
	 
	 @Override
	 protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
	  
	  try {
	   
			String tag =  req.getParameter("tag");
			String name =  req.getParameter("name");
			String email =  req.getParameter("email");
			String password =  req.getParameter("password");
		  
	   JSONObject responseObj = new JSONObject();
	   
	   responseObj.put("registered", "true");
	   
	   PrintWriter writer = resp.getWriter();
	   writer.write(responseObj.toString());
	   writer.flush();
	   
	  } 
	  catch (Exception e) {   
	   e.printStackTrace();
	   throw new ServletException(e);
	  }
	  
	 }

}
